package Entities;

import java.util.ArrayList;

public class Material {
	
	public int m_id;
	public String type;
	public float mass = 0;
	public float energy = 0;
    String name;
    float quantity;
    String unit;
    int isAdded;
	
	// this kind of material is not raw material, it is made of something
	public ArrayList<Material> component = new ArrayList<Material>();
	
	// this kind of material is raw material, so it is from somewhere
	
	
	public Material(){}
	
	public void copyMaterial(Material s) {
		// TODO Auto-generated method stub
    	this.name = s.name;
    	this.quantity = s.quantity;
    	this.unit = s.unit;
    	this.isAdded = s.isAdded;
	}
	
	public float getEnergy(){
		
		//additional energy calculation method
		//or just return
		return this.energy;
	}
	
	public void setName(String n){
		this.name = n;
	}
	
	public String getName(){
		return this.name;
	}
	
	public void setQuantity(float q){
		this.quantity = q;
	}
	
	public float getQuantity(){
		return this.quantity;
	}
	
	public void setUnit(String u){
		this.unit =u;
	}
	
	public String getUnit(){
		return this.unit;
	}
	
	public void setIsAdd(int a){
		this.isAdded = a;
	}
	
	public int getIsAdd(){
		return this.isAdded;
	}
}
